﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Xml;

namespace DataAccessor.Tools
{
    public partial class FormPrimary
    {
        private static string CONFIG_DOC_TEMPLATE = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><TSQL xmlns=\"http://dataaccessor.codeplex.com/xsd/T-SQL\"></TSQL>";

        private void OpenStatementSettingForm()
        {
            var config = treeHolistic.SelectedNode.Tag as HolisticDatabaseConfig;
            var database = treeHolistic.SelectedNode.Parent.Tag as HolisticDatabase;

            var form = new FormStatement(config, _tsqlCache[config.GetHashCode()]);
            LoadSettingForm(form);
        }
    }
}
